package com.learn.project2.controller.admin;

import com.learn.project2.model.bo.admin.user.UserListBO;
import com.learn.project2.model.vo.admin.feedback.FeedbackListVO;
import com.learn.project2.service.admin.feedback.FeedbackService;
import com.learn.project2.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * @description: 意见反馈
 * @author wxy
 * @date 2022-01-08 14:39
 * @version 1.0
 */
@RequestMapping("admin/feedback")
@RestController
public class FeedbackController {

    @Autowired
    FeedbackService feedbackService;
    @RequestMapping("list")
    public Result list(Integer id, String username, UserListBO userListBO){
        FeedbackListVO feedbackListVO = feedbackService.selectFeedback(id,username,userListBO);
        return Result.ok(feedbackListVO);

    }
}
